
import '../../model/wallet_list_model.dart';

class CoinsData{
  List<SessionCoinModel> sessionCoins = <SessionCoinModel>[];

  CoinsData.fromJson(Map<String, dynamic> map){
    if(map["sessionCoins"] != null){
      List list = map["sessionCoins"];
      list.forEach((v) {
        sessionCoins.add(SessionCoinModel.fromJson(v));
      });
    }
  }
}


class SessionCoinModel{

  SessionCoinModel(this.title, this.isOpen, this.coins);

  String title = "";
  bool isOpen = true;
  List<CoinsBean> coins = <CoinsBean>[];

  SessionCoinModel.fromJson(Map<String, dynamic> map){
    title = map["title"];
    if(map["coins"] != null){
      List list = map["coins"];
      list.forEach((v) {
        coins.add(CoinsBean.fromMap(v));
      });
    }
  }


}


class SessionModel {
  String title = "";
  bool isOpen = true;
  List<ItemModel> items = [];
}

class ItemModel {
  String image = "";
  String title = "";
  String subTitle = "";
  bool isSelected = false;
}
